package v1

var (
	// common errors
	ErrSuccess             = newError(200, "success")
	ErrBadRequest          = newError(400, "Bad Request")
	ErrUnauthorized        = newError(401, "Unauthorized")
	ErrForbidden           = newError(403, "Forbidden")
	ErrNotFound            = newError(404, "Not Found")
	ErrInternalServerError = newError(500, "Internal Server Error")
	ErrBadGateway          = newError(502, "Bad Gateway")

	// more biz errors
	ErrUserExist         = newError(1001, "The user name already exists.")
	ErrUserNotExist      = newError(1002, "The user does not exist.")
	ErrPasswordIncorrect = newError(1003, "The password is incorrect.") // 密码错误
	ErrUserAccountExist  = newError(1005, "The user account already exists.")
	ErrTagExist          = newError(1006, "The tag name already exists.")
	ErrTagNotExist       = newError(1007, "The tag does not exist.")
	ErrArticleNotExist   = newError(1008, "The article does not exist.")
	ErrFileUploadFail    = newError(1009, "File upload failed.")
	ErrTagHasArticle     = newError(1010, "The tag has articles.")
	ErrFileNotExist      = newError(1011, "File does not exist.")
	ErrUserDisable       = newError(1012, "The user is disabled.")
	ErrUserClosure       = newError(1013, "The user is closed.")
)
